//
//  BeautyModel.swift
//  TestConcurreces
//
//  Created by rolodestar on 2025/6/16.
//

import SwiftData
import Foundation
import RoSwiftDataForNetVideoDownload
typealias BeautyModel = BeautyModelV1
@Model
class BeautyModelV1: NetVideoProtol{
    var id: UUID
    
    var remoteUrl: URL
    
    var downloadProgress: Double
    
    var resumeData: Data?
    
    var localUrl: URL?
    init(id: UUID, remoteUrl: URL, downloadProgress: Double = 0.0, resumeData: Data? = nil, localUrl: URL? = nil) {
        self.id = id
        self.remoteUrl = remoteUrl
        self.downloadProgress = downloadProgress
        self.resumeData = resumeData
        self.localUrl = localUrl
    }
    
    static var debugVideo: BeautyModel{
//        let videomodel = VideoModel(id: <#T##PersistentIdentifier#>, remoteUrl: <#T##URL#>)
        return BeautyModel(id: UUID(), remoteUrl: URL(string: "https://txmov2.a.kwimgs.com/upic/2024/01/31/15/BMjAyNDAxMzExNTAyMjNfOTQ0MjI3OThfMTIzNjAxOTMwNzQ4XzFfMw==_b_B13ad5de6e59107566026b3701a63a1d2.mp4?clientCacheKey=3xaz973garbxxue_b.mp4&tt=b&di=78e498d6&bp=13414")!)
    }
}
